﻿/* 13. Create a program that assigns null values to an integer and to double variables. 
 * Try to print them on the console, try to add some values or the null literal to them and see the result. */

using System;

public class NullableTypes
{
    public static void Main()
    {
        int? integerOrNull = null;
        double? doubleOrNull = null;

        Console.WriteLine("integerNull={0}\ndoubleNull={1}\n", integerOrNull, doubleOrNull);
        Console.WriteLine("integerNull+{0}={1}\ndoubleNull+{2}={3}\n", 5, integerOrNull + 5, 5.4, doubleOrNull + 5.4);
        Console.WriteLine("integerNull+null={0}\ndoubleNull+null={1}\n", integerOrNull + null, doubleOrNull + null);
    }
}